<?php $this->load->view('common/mail_templates/header'); ?>

<h1 style="margin: 10px 0; padding: 0; font: normal 24px arial">Yeni Ödeme Bildirimi Yapıldı</h1>

<p><b><?php echo my_date(date('Y-m-d H:i:s')) ?></b> tarihinde aşağıda detayları bulunan siparişe istinaden <b><?php echo $bank ?></b> adlı hesaba müşteri havale/eft yaptığını bildirdi.</p>

<!-- ORDER DETAILS -->
<h3>» FATURA BİLGİLERİ</h3>
<hr />

<table cellspacing="5" bgcolor="#EEEEEE" width="100%">
    <tr>
        <td width="30%">Ad Soyad</td>
        <td>: <?php echo $order->firstname . ' ' . mb_strtoupper($order->lastname, 'UTF-8') ?></td>
    </tr>
    <tr>
        <td>Telefon</td>
        <td>: <?php echo $order->telephone ?></td>
    </tr>
    <tr>
        <td>Firma</td>
        <td>: <?php echo $order->company ?></td>
    </tr>
    <tr>
        <td>Vergi Dairesi</td>
        <td>: <?php echo $order->tax_office ?></td>
    </tr>
    <tr>
        <td>Vergi Numarası</td>
        <td>: <?php echo $order->tax_number ?></td>
    </tr>
    <tr>
        <td>Adres</td>
        <td>
            <?php echo $order->address ?><br />
            <?php echo $order->town ?> / <?php echo $order->city ?> / <?php echo $order->country_name ?><br />
            <?php echo $order->zipcode ?>
        </td>
    </tr>
</table>
<!-- // ORDER DETAILS -->


<!-- PAYMENT DETAILS -->
<h3>» Ödeme Bilgileri</h3>
<hr />

<table cellspacing="5" bgcolor="#EEEEEE" width="100%">
    <tr>
        <td width="30%">Genel Toplam</td>
        <td>: <span class="price green small"><?php echo price($order->total) ?></span></td>
    </tr>
    <tr>
        <td>Ödeme Metodu</td>
        <td>: <?php echo $order->payment_method_name ?></td>
    </tr>

    <?php foreach(unserialize($order->payment_details) as $key => $value) { ?>

    <tr>
        <td><?php echo $key ?></td>
        <td>: <?php echo $value ?></td>
    </tr>

    <?php } ?>
</table>
<!-- PAYMENT DETAILS -->


<!-- ORDER SUMMARY -->
<h3>» Sipariş Özeti</h3>
<hr />

<table width="100%" bgcolor="#EEEEEE">
    <tr>
        <td><strong>Ürün</strong></td>
        <td><strong>Fiyat</strong></td>
        <td><strong>Miktar</strong></td>
        <td><strong>Toplam</strong></td>
    </tr>

    <?php foreach ($order_products as $row) { ?>

        <tr>
            <td><?php echo $row->name ?></td>
            <td><?php echo price($row->price) ?></td>
            <td><?php echo $row->qty ?></td>
            <td><?php echo price($row->total) ?></td>
        </tr>

    <?php } ?>

</table>

<table style="width: 100%">

<?php foreach ($order_total as $row) { ?>

    <tr>
        <td style="width: 65%">&nbsp;</td>
        <td><?php echo $row->title ?></td>
        <td><?php echo $row->text ?></td>
    </tr>

<?php } ?>

</table>
<!-- // ORDER SUMMARY -->

<?php $this->load->view('common/mail_templates/footer'); ?>